from google.appengine.ext import ndb

# Create your models here.

class GoldData(ndb.Model):
	experimentId = ndb.StringProperty(required=True) 
	processId = ndb.IntegerProperty(required=True)
	taskId = ndb.IntegerProperty(required=True)
	originalLabel = ndb.StringProperty(required=True)
	proposedLabel = ndb.StringProperty(required=True)
	default = ndb.IntegerProperty(required=True) #boolean (1 or 0)
	token = ndb.StringProperty(required=True)

class Activity(ndb.Model):
	processId = ndb.IntegerProperty(required=True)
	taskId = ndb.IntegerProperty(required=True)
	label = ndb.StringProperty(required=True)

class Dataset(ndb.Model):
	instanceId = ndb.IntegerProperty(required=True)
	taskId1 = ndb.IntegerProperty(required=True)
	label1 = ndb.StringProperty(required=True)
	taskId2 = ndb.IntegerProperty(required=True)
	label2 = ndb.StringProperty(required=True)
	token = ndb.StringProperty(required=True)
	taskIdGold = ndb.IntegerProperty(required=False)